<?php
/**
 * http://code.google.com/p/php-iterator-utils/
 * @license http://www.apache.org/licenses/LICENSE-2.0.html
 * @author Seva Lapsha (seva.lapsha@gmail.com)
 */
namespace lapsha\common {
	function checkCallable($p) {
		if (!is_callable($p))
			throw new \InvalidArgumentException('Not callable: '.$p);
	}
}
